#pragma once
#include "wceuidlg.h"
#include "WEIButton.h"
#include <Afxtempl.h>

#define PHOTO_LIST_COUNT 6
#define PHOTO_ITEM_HEIGHT 41
#define MIN_TOTAL_ITEM_HEIGHT (PHOTO_ITEM_HEIGHT * (PHOTO_LIST_COUNT - 1))

class CPhotoDlg : public CWceUiDlg
{
	WCEUI_DYNCREATE_BEGIN(CPhotoDlg, CWceUiDlg)
public:
	CPhotoDlg(void);
	virtual ~CPhotoDlg(void);

	virtual void OnInitDialog();
	virtual void OnClick(PCWceUiButton pButton);
	virtual LRESULT OnCommand(UINT uCommand, WPARAM wParam, LPARAM lParam);

private:
	void InitList(CString strPath);
	void UnInitList();
	CList<LPWIN32_FIND_DATA, LPWIN32_FIND_DATA>  m_List;
	CWceUiLayer* m_pPhotoItemListArr[PHOTO_LIST_COUNT];
	CWceUiLayer* m_pFrame;
	void UpdateList();
	CString m_strCurPath;
};
WCEUI_DYNCREATE_END(CPhotoDlg, CWceUiDlg)
